*{
    margin: 0;
    padding: 0;
}

html{
    font-size: 16px;
}
.navbar{
    border-radius: 0;
    background-color: #222;
    margin-bottom: 0;
    @media screen and (max-width: 1235px){
        .box{
            width: 100% !important;
        }
    }
    .box{
        width: 85%;
        margin:0 auto;
        .navbar-header{
            &>button{
                border: 1px solid #333;
                &:hover{
                    background-color: #333;
                }
                &>span{
                    background-color: #fff;
                }
            }
            .navbar-brand{
                margin-top: 8px;
                padding: 0 15px;
                height: auto;
            }
        }
        .navbar-collapse{
            .navbar-nav{
               &>li{
                &>a{
                    color: #9d9d9d;
                    font: inherit;
                    &:hover{
                        color: #fff;
                        background-color: #080808;
                    }
                    &:focus{
                        color: #fff;
                        background-color: #080808;
                    }
                }
               } 
            }
        }
    }

}

/* Carousel base class */
.carousel {
    // height: 500px;
    .carousel-inner{
        .item {
            background-color: #777;
            img{
                min-width: 100%;        
            }
        }
        .carousel-caption {
            z-index: 10; /* Since positioning the image, we need to help out the caption */
            font-size: 2rem;
            bottom: 15%;
            @media screen and(max-width:700px) {
                font-size: 1rem;
            }
        }
    }
      
}

.layaflash{
    background-color: #fbfaf7;
    padding: 8rem 0rem 3rem;
    overflow: hidden;
    .content{
        width: 85%;
        margin: 0 auto;
        .row{
            margin: 0 -15px;
            .col-md-6{
                padding-left: 0;
            }
            .left{
                padding-left: 0;
                .title{
                    margin-bottom: 4rem;
                    .bigFont{
                        font-size: 2.5rem;
                        color: #0078d7;
                        font-weight: bold;
                        margin-bottom: 1.5rem;
                    }
                    .smallFont{
                        font-size: 1rem;
                        color: #666;
                    }
                }
                .container{
                    .row{
                        .col-md-6{
                            display: flex;
                            align-items: start;
                            width: 30%;
                            @media screen and (max-width:1050px) {
                                width: 50%;
                                display: flex;
                            }
                            @media screen and (max-width:990px) {
                                width: 100%;
                                display: flex;
                            }
                            &>img{
                                margin-right: 1.5rem;
    
                            }
                            .text{
                                margin-bottom: 4rem;
                                &>p{
                                    color: #666;
                                    &:nth-of-type(1){
                                        font-size: 1.2rem;
                                        margin-bottom: 0.5rem;
                                        font-weight: bold;
                                    }
                                    &:nth-of-type(2){
                                        font-size: 1rem;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .right{
                padding-left: 7rem;
                @media (min-width:992px) {
                    width: 50%;
                }
                @media (max-width:1050px) {
                    display: none;
                }
            }
        }
    }
}

.advantage{
    padding: 5rem 0;
    overflow: hidden;
    .content{
        width: 85%;
        margin: 0 auto;
        .container{
            .row{
                .left{
                    @media screen and (max-width:990px){
                        display: none;
                    }
                    &>img{
                        margin-top: 5rem;
                    }
                }
                .right{
                    padding-left: 4rem;
                    .title{
                        font-size: 2.5rem;
                        color: #8fc31f;
                        font-weight: bold;
                        margin-bottom: 3rem;
                    }
                    .itemList{
                        .item{
                            @media screen and (max-width:550px){
                                margin-bottom: 2rem;
                            }
                            display: flex;
                            align-items: center;
                            color: #666;
                            margin-bottom: 1rem;
                            &>img{
                                margin-right: 1rem;
                            }
                            &>p{
                                margin: 0;
                            }
                        }
                    }
                }
            }
        }
    }
}

.family{
    background-color: #0079d7;
    padding: 7rem 0;
    overflow: hidden;
    .content{
        width: 85%;
        margin: 0 auto;
        .title{
            text-align: center;
            color: #fff;
            font-size: 2.5rem;
            margin-bottom: 3rem;
        }
        .list{
            .row{
                margin-bottom: 4rem;
                .col-md-6{
                    &:first-child{
                        @media screen and (max-width:990px){
                            margin-bottom: 4rem;
                        }
                    }   
                    padding-left: 0;
                    display: flex;
                    align-items: start;
                    &>img{
                        padding-top: 1rem;
                        margin-right: 3rem;
                        padding-left: 0.5rem;
                    }
                    .text{
                        width: 50%;
                        color: #fffefe;
                        &>p{
                            &:nth-of-type(1){
                                font-size: 2rem;
                                margin-bottom: 0.5rem;
                            }
                            &:nth-of-type(2){
                                font-size: 85%;
                                line-height: 1.5rem;
                            }
                        }
                    }
                }
            }
        }
    }
}

.player{
    padding: 5rem 0;
    overflow: hidden;
    .content{
        width: 85%;
        margin: 0 auto;
        .container{
            .title{
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 3rem;
                .left{
                    font-size: 2.5rem;
                }
                &>a{
                    color: #333;
                }
            }
            .itemList{
                @media screen and (max-width:990px) {
                    flex-wrap: wrap;
                }
                display: flex;
                .videoBox{
                    width: 100%;
                    &>video{
                        @media screen and (max-width:990px) {
                            width: 100%;
                        }
                        width: 400px;
                        height: 100%;
                        border: 1px solid rgba(0, 0, 0, 0);
                        border-radius: 10px;
                        overflow: hidden;
                    }
                }
                .right{
                    margin-top: 3rem;
                    text-align: center;
                    @media screen and(max-width:990px) {
                        margin-left: 0;
                        text-align: center;
                    }
                    .row{
                        display: flex;
                        justify-content: space-around;
                        @media screen and(max-width:990px) {
                            margin-bottom: 0;
                        }
                        @media screen and(max-width:700px) {
                            margin-top: 0;
                            flex-wrap: wrap;
                        }
                        &:first-child{
                            margin-bottom: 1.5rem;
                            @media screen and(max-width:990px) {
                                margin-bottom: 0;
                            }
                        }
                        .col-md-2{
                            padding-left: 0;
                            @media screen and(max-width:700px) {
                                width: 33%;
                                margin-top: 3rem;
                            }
                            @media screen and(max-width:400px) {
                                width: 50%;
                                margin-top: 1rem;
                            }
                        }
                    }
                }
            }
        }
    }
}

.friend{
    padding: 3rem 0;
    background-color: #f4f4f4;
    overflow: hidden;
    .content{
        width: 85%;
        margin: 0 auto;
        .title{
            font-size: 2.5rem;
            margin-bottom: 2rem;
        }
        .itemList{
            .row{
                @media screen and (max-width:1100px) {
                    display: flex;
                    flex-wrap: wrap;
                }
                &:first-child{
                    margin-bottom: 1rem;
                    @media screen and(max-width:1100px) {
                        margin-bottom: 0rem;
                    }
                }
                .col-md-2{
                    @media screen and(max-width:1100px) {
                        width: 33%;
                    }
                    @media screen and(max-width:600px) {
                        width: 50%;
                    }
                    &:nth-child(-n+6){
                        @media screen and (max-width:1100px) {
                            margin-top: 2rem;
                        }
                        @media screen and (max-width:600px) {
                            margin-top: 1rem;
                        }
                    }
                    padding-left: 0;
                    &>img{
                        @media screen and (max-width:375px) {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }
}

.footer{
    padding: 2rem 0;
    background-color: #3b3b3b;
    .content{
        width: 80%;
        display: flex;
        margin: 0 auto;
        justify-content: space-between;
        @media screen and(max-width:650px) {
            display: block;
            width: 100%;
        }
        .text{
            color: #8c8d94;
            text-align-last: left;
            @media screen and(max-width:650px) {
                width: 90%;
                margin: 0 auto;
                position: relative;
                bottom: -50px;
            }
            @media screen and(max-width:460px) {
                width: 100%;
                position: relative;
                bottom: -50px;
            }
            .title{
                width: 100%;
                display: flex;
                justify-content: space-between;
                font-size: 1rem;
                margin-bottom: 0.5rem;
                @media screen and(max-width:900px) {
                    width: 80%;
                }
                @media screen and(max-width:650px) {
                    width: 90%;
                    margin: 0 auto;
                    margin-bottom: 0.5rem;
                }
                @media screen and(max-width:460px) {
                   display: flex;
                   flex-wrap: wrap;
                   margin: 0 auto;
                   width: 80%;
                }
                &>p{
                    margin: 0;
                    @media screen and(max-width:460px) {
                        width: 25%;
                        margin-bottom: 0.5rem;
                    }
                }
            }
            &>p{
                font-size: 1rem;
                margin: 0;
                @media screen and(max-width:900px) {
                    width: 80%;
                }
                @media screen and(max-width:650px) {
                    width: 90%;
                    font-size: 0.9rem;
                    margin: 0 auto;
                }
                @media screen and(max-width:460px) {
                   display: flex;
                   justify-content: center;
                   font-size: .5rem;
                   width: 100%;
                }
            }
        }
        .itemList{
            width: 15%;
            display: flex;
            justify-content: space-between;
            @media screen and(max-width:1000px) {
                width: 25%;
            }
            @media screen and(max-width:650px) {
                width: 80%;
                margin: 0 auto;
                position: relative;
                bottom: 65px;
            }
            @media screen and(max-width:460px) {
                width: 70%;
                position: relative;
                top: -47px;
            }
        }
    }
}
  
  
